﻿<UserControl x:Class="Fluffy.FileMenuCommands.NewCommandView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:fileMenuCommands="clr-namespace:Fluffy.FileMenuCommands"
             xmlns:text="clr-namespace:Fluffy.Text;assembly=Fluffy.Text"
             mc:Ignorable="d" d:DataContext="{d:DesignInstance fileMenuCommands:NewCommandViewModel}"
             d:DesignHeight="300" d:DesignWidth="300">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/Fluffy.Library;component/Resources/Skin.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid>
        <ListView ItemsSource="{Binding Documents}" BorderThickness="0">
            <ListView.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapPanel IsItemsHost="True"/>
                </ItemsPanelTemplate>
            </ListView.ItemsPanel>
            <ListView.Resources>
                <DataTemplate DataType="{x:Type fileMenuCommands:DocumentContainerViewModel}">
                    <StackPanel Orientation="Vertical">
                        <Border BorderThickness="1" BorderBrush="Black" Width="150" Height="200"/>
                        <TextBlock Text="Text document"/>
                    </StackPanel>
                </DataTemplate>
            </ListView.Resources>
            <ListView.ItemContainerStyle>
                <Style TargetType="{x:Type ListViewItem}">
                    <Setter Property="IsSelected" Value="{Binding IsSelected}"/>
                    <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<!--                    <Style.Triggers>-->
<!--                        <Trigger Property="IsMouseOver" Value="True">-->
<!--                            <Setter Property="Background" Value="{DynamicResource AppMainColor}"/>-->
<!--                            <Setter Property="Foreground" Value="{DynamicResource AppMainForegraundColor}"/>-->
<!--                        </Trigger>-->
<!--                    </Style.Triggers>-->
                </Style>
            </ListView.ItemContainerStyle>
        </ListView>
    </Grid>
</UserControl>
